/*
 * @Author: your name
 * @Date: 2021-06-27 09:44:26
 * @LastEditTime: 2021-06-27 09:49:17
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \新建文件夹 (2)\asugcsacv\db\mydel.js
 */
const mysql=require("mysql")
const con=mysql.createConnection({
    port:"3306",
    host:"localhost",
    user:"root",
    password:"root",
    database:"zx"
    
})
function query(sql){
    return new Promise((res)=>{
        con.query(sql,(err,data)=>{
            res(data)
        })
    })
}
module.exports=query
